#include "helper/sqlite/stream/Action.h"

#include "helper/sqlite/shortcut/Action.h"

namespace helper {
namespace sqlite {
namespace stream {

Action::Action()
{
}
Action::~Action()
{
}

ActionResult Action::action(){
  if(isDbValid() && isSqlValid()){
    shortcut::Action action(db());
    return action.action(sql());
  }
  return ActionResult(std::make_error_code(std::errc::invalid_argument));
}

}//namespace stream
}//namespace sqlite
}//namespace helper
